package top.anydata.lifeofcode.lifesystem.service.api.user;

/**
 * 功能描述:
 *
 * @author <a href="mailto:caingao@anydata.top">CainGao</a>
 * @version V_1.0
 * @date 2024/2/19 6:50 PM
 */
public interface IApiUserAuthService {
    /**
     * 发送手机验证码
     */
    String sendPhoneVerificationCode(String phone);
    /**
     * 发送邮箱验证码
     */
    String sendMailVerificationCode(String mail);
    /**
      * 验证手机验证码
     * /
    Boolean verifyPhoneCode(String phone, String verificationCode);
    /**
     * 验证邮箱验证码
    */
    Boolean verifyMailCode(String mail, String verificationCode);
    /**
     * 注册
     */
    String signUp(String firstName, String lastName, String email, String password);
    /**
    * 登录
    */
    String signIn(String email, String password);

}
